package lab02.test12;

public class   Rectangular extends Shape{

    double  grow;
    double  wide;
    double area;
    double perimeter;
    @Override
    public void getPerimeter() {

        perimeter=2*(grow+wide);
        System.out.println("矩形的周长："+perimeter);

    }

    @Override
    public void getArea() {

        area=grow*wide;
        System.out.println("矩形的面积："+area);
    }
}
